package com.example.idlefish.GoodsInfo.parseGson

import com.example.idlefish.GoodsInfo.pojo.BuyInfo
import com.example.idlefish.GoodsInfo.pojo.ListGood
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken

object parseListGood {
    fun  parseListGood(response:String): ArrayList<ListGood> {
        val gson = Gson()
        val ttype = object : TypeToken<ArrayList<ListGood>>(){}.type
        return gson.fromJson(response, ttype)
    }
}